﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Teriri.File.UniversalLib.Model
{
    public class FileInfoDto
    {
        public string Name { get; set; }

        public string Type { get; set; }

        public string Url { get; set; }

        public bool IsDir { get; set; }

        public DateTime UpdateTime { set; get; }

        public DateTime CreateTime { set; get; }

        public string UpdateTimeStr { get { return UpdateTime.ToString("yyyy-MM-dd HH:mm:ss fff"); } }

        public string CreateTimeStr { get { return CreateTime.ToString("yyyy-MM-dd HH:mm:ss fff"); } }

        public string Size { set; get; }

        /// <summary>
        /// 扩展-图标文件
        /// </summary>
        public string Image { set; get; }
    }
}
